package com.htu.courseService.common.exception;

import com.htu.courseService.common.enums.ErrorCodeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessException extends RuntimeException{
    private ErrorCodeEnum errorCodeEnum;
    public BusinessException(ErrorCodeEnum errorCodeEnum){
        setErrorCodeEnum(errorCodeEnum);
    }
}
